<div id="content" class="hfeed">
    <div class="page hentry entry">
        <div class="post-wrap">
            <div class="entry-content">

                <h2>Danh sách</h2>
                <table cellpadding="0" cellspacing="0">
                    <thead>
                        <tr>
                            <th><?php echo $this->Paginator->sort('mobile_model_id'); ?></th>
                            <th><?php echo $this->Paginator->sort('model_code'); ?></th>
                            <th><?php echo $this->Paginator->sort('image_url'); ?></th>
                            <th><?php echo $this->Paginator->sort('price'); ?></th>
                            <th><?php echo $this->Paginator->sort('discount'); ?></th>
                            <th><?php echo $this->Paginator->sort('retail_price'); ?></th>
                            <th><?php echo $this->Paginator->sort('warranty_month'); ?></th>
                            <th><?php echo $this->Paginator->sort('mobile_base_id'); ?></th>
                            <th><?php echo $this->Paginator->sort('mobile_name'); ?></th>
                            <th class="actions"><?php echo __('Actions'); ?></th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach ($mobileModels as $mobileModel): ?>
                        <tr>
                            <td><?php echo h($mobileModel['MobileModel']['mobile_model_id']); ?>&nbsp;</td>
                            <td><?php echo h($mobileModel['MobileModel']['model_code']); ?>&nbsp;</td>
                            <td><?php echo h($mobileModel['MobileModel']['image_url']); ?>&nbsp;</td>
                            <td><?php echo h($mobileModel['MobileModel']['price']); ?>&nbsp;</td>
                            <td><?php echo h($mobileModel['MobileModel']['discount']); ?>&nbsp;</td>
                            <td><?php echo h($mobileModel['MobileModel']['retail_price']); ?>&nbsp;</td>
                            <td><?php echo h($mobileModel['MobileModel']['warranty_month']); ?>&nbsp;</td>
                            <td>
                                <?php echo $this->Html->link($mobileModel['MobileBase']['mobile_base_name'], array('controller' => 'mobile_bases', 'action' => 'view', $mobileModel['MobileBase']['mobile_base_id'])); ?>
                            </td>
                            <td><?php echo h($mobileModel['MobileModel']['mobile_name']); ?>&nbsp;</td>
                            <td class="actions">
                                <?php echo $this->Html->link(__('View'), array('action' => 'view', $mobileModel['MobileModel']['mobile_model_id'])); ?>
                                <?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $mobileModel['MobileModel']['mobile_model_id'])); ?>
                                <?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $mobileModel['MobileModel']['mobile_model_id']), array(), __('Are you sure you want to delete # %s?', $mobileModel['MobileModel']['mobile_model_id'])); ?>
                            </td>
                        </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
                <p class="paging-p">
                    <?php
                    echo $this->Paginator->counter(array(
                    'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
                    ));
                    ?>
                </p>
                <div class="paging">
                    <?php
                    echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
                    echo $this->Paginator->numbers(array('separator' => ''));
                    echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
                    ?>
                </div>

            </div>
        </div>
    </div>
</div>
<div id="sidebar" class="sidebar">
    <div class="widget">
        <h4>Chức năng</h4>
        <ul class="menu">
            <li><?php echo $this->Html->link(__('New Mobile Model'), array('action' => 'add')); ?></li>
        </ul>
    </div>
</div>


